	<h1 id ="page_title">Klotterplanket</h1>
	<p>Din sökning på "<?php echo $this->input->post('search_string');?>" gav <?php echo count($rows);?> resultat</p>
<div id="entries">
<ul>
<?php  if(isset($rows) && count($rows) > 0) : foreach($rows as $row) : ?>  
  <li style="<?php if($row->categoryID=="1"){echo "background:#ffc";} else if($row->categoryID=="2"){echo "background:#cfc";} ?> ">  
    
		<p class="date"> <?php echo $row->date; ?></p>
		<p class="headline"> <?php echo $row->headline; ?></p>
		<p class="text" > <?php echo $row->text; ?></p>
		<p class="author"> <?php echo $row->author; ?></p>
		<p class="categoryName"> <?php echo $row->categoryName; ?></p>
		<p class="moodName"> <?php echo $row->moodName; ?></p>
		<p class="edit"> <?php echo anchor("site/edit_entry/$row->entryID", 'Ändra'); ?></p>
	</li>
<?php endforeach; ?>
	<?php else : ?>	
		<p>Tomt</p>
	<?php endif; ?>
	</ul>
</div>